using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class ConfigWeaponContent : MonoBehaviour
{
    public Image m_WeaponImage;
    Weapon m_Weapon;
    void Start()
    {
        var height = m_WeaponImage.GetComponent<RectTransform>().rect.height;
        var size = m_WeaponImage.GetComponent<RectTransform>().sizeDelta;
        m_WeaponImage.GetComponent<RectTransform>().sizeDelta = new Vector2((int)height / 2, size.y);
    }

    // Update is called once per frame
    void Update()
    {

    }
    public void Load(Weapon weapon)
    {
        m_Weapon = weapon;
    }
    public void Init(Sprite sprite)
    {
        m_WeaponImage.sprite = sprite;
    }
    public void ApplyData()
    {

    }
}
